package myJs.myPkg

import argonaut._
import argonaut.Argonaut._
import argonaut.ArgonautShapeless._
import myJs.myPkg.jquery.JQuery
import myJs.Utils._
import myJs.myPkg.PlotlyConfig
import shared.highcharts.config.HighchartsConfig
import shared.plotly.internals.BetterPrinter

import scala.scalajs.js
import scala.scalajs.js.JSON
import shared.plotly.internals.ArgonautCodecsInternals._
import myJs.Implicits._
import myJs.tool.Tool
import scala.scalajs.js.Dynamic.{global => g}

/**
 * Created by yz on 9/4/2020
 */
package object myHighcharts {

  def chart(jq: JQuery, config: HighchartsConfig) = {
    g.Highcharts.chart(jq(0), config.asJson.stripNulls)
  }

  def chart(divId: String, config: HighchartsConfig) = {
    g.Highcharts.chart(divId, config.asJson.stripNulls)
  }

}
